import axios from 'axios'
import { BaseService } from './BaseService'

export class CamerasService extends BaseService {
    // get
    // 获取相机详细信息
    public async getCameraInfo(cameraId: string) {
        const url = this.camerasBaseUrl + '/' + cameraId
        return await axios.get(url)
    }

    // 获取相机
    public async getCamera(brand: string) {
        const url = this.camerasBaseUrl + '/search?brand=' + brand
        return await axios.get(url)
    }

    // post
    // 创建相机
    public async createCameras(date: any) {
        const url = this.camerasBaseUrl
        return axios.post(url, date)
    }
}
